package com.gopay.common.domain.pdus;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * 2017年2月20日 
 * www.gopay.com.cn Inc.All rights reserved.
 */

@Entity
@Table(name = "PDUS_USER_LOG")
public class PdusUserLogPo implements java.io.Serializable{
	private static final long serialVersionUID = -4978715947238120801L;
	
	private  String dataId;
	private String userId;
	private String custId;
	private int status;
	 /**
     * 乐观锁版本号
     */
    private int version;
    
    private  Date operTm;
    
    private String remoteIp;
    
    private String time;
    
    private String fileSq;
    
    private String operType;//操作类型  是登录，还是注册
    
    private Date lastQueryTm;
    
    /**
     * 创建时间
     */
    private Date createTm;
    /**
     * 记录最后修改时间
     */
    private Date updateTm;
    
   
    
    @Id
    @Column(name = "DATA_ID", unique = true, nullable = false)
	public String getDataId() {
		return dataId;
	}
	public void setDataId(String dataId) {
		this.dataId = dataId;
	}
	
	@Column(name = "USER_ID", nullable = false, length = 20)
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Column(name = "CUST_ID", nullable = false, length = 20)
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	
	@Column(name = "STATUS", nullable = false, length = 1)
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
    @Version
    @Column(name = "\"VERSION\"")
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	
	@Column(name = "OPER_TM")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getOperTm() {
		return operTm;
	}
	public void setOperTm(Date operTm) {
		this.operTm = operTm;
	}
	
	@Column(name = "REMOTE_IP", nullable = false, length = 30)
	public String getRemoteIp() {
		return remoteIp;
	}
	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}
	
	@Column(name = "TIME", nullable = false, length = 10)
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	
	@Column(name = "File_Sq", nullable = false, length = 10)
	public String getFileSq() {
		return fileSq;
	}
	public void setFileSq(String fileSq) {
		this.fileSq = fileSq;
	}
	
	@Column(name = "OPER_TYPE", nullable = false, length = 20)
	public String getOperType() {
		return operType;
	}
	public void setOperType(String operType) {
		this.operType = operType;
	}
	
	
    @Column(name = "LAST_QUERY_TM")
    @Temporal(TemporalType.TIMESTAMP)
	public Date getLastQueryTm() {
		return lastQueryTm;
	}
	public void setLastQueryTm(Date lastQueryTm) {
		this.lastQueryTm = lastQueryTm;
	}
	@Column(name = "CREATE_TM")
    @Temporal(TemporalType.TIMESTAMP)
	public Date getCreateTm() {
		return createTm;
	}
	
	public void setCreateTm(Date createTm) {
		this.createTm = createTm;
	}
	
    @Column(name = "UPDATE_TM")
    @Temporal(TemporalType.TIMESTAMP)
	public Date getUpdateTm() {
		return updateTm;
	}
	public void setUpdateTm(Date updateTm) {
		this.updateTm = updateTm;
	}
	@Override
	public String toString() {
		return "PdusUserLogPo [dataId=" + dataId + ", userId=" + userId
				+ ", custId=" + custId + ", status=" + status + ", version="
				+ version + ", operTm=" + operTm + ", remoteIp=" + remoteIp
				+ ", createTm=" + createTm + ", updateTm=" + updateTm + "]";
	}
    
    
    
}
